package com.sangcomz.fishbun.util;

import ohos.agp.components.Image;
import ohos.app.Context;

import java.util.jar.Attributes;

/**
 * Created by sangc on 2015-12-26.
 */
public class SquareImageView extends Image {
    Context context;
    Attributes attrs = null;
    int defStyleAttr = 0;

    public SquareImageView(Context context) {
        super(context);
        this.context = context;
    }

    public SquareImageView(Context context, Attributes attrs) {
        super(context);
        this.context = context;
        this.attrs = attrs;
    }

    public SquareImageView(Context context, Attributes attrs, int defStyleAttr) {
        super(context);
        this.context = context;
        this.attrs = attrs;
        this.defStyleAttr = defStyleAttr;
    }

    protected void onEstimateSize(int widthMeasureSpec, int heightMeasureSpec) {
//        super.ones(widthMeasureSpec, widthMeasureSpec);
    }
}
